import React from 'react';
import { Switch, Route } from "react-router-dom";
import ListPage from './HotkeywordList';
import EditPage from './HotKeywordEdit';

export const Region = {
  text: '热门词语',
};

const HotKeywordComp = ({match}) => (
  <Switch>
    <Route path={`${match.url}/list`} component={ListPage} />
    <Route path={`${match.url}/edit/:id`} component={EditPage} />
    <Route path={`${match.url}/add`} component={EditPage} />
  </Switch>
);

export default HotKeywordComp;